* {
  padding: 0;
  margin: 0;
}

ul,
li {
  list-style: none;
}

body {
  background-size: 120%;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
}
/* 搜索 */
.search {
  width: 100%;
  height: 0.5rem;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: space-evenly;
  align-items: center;

}

#search_form {
  width: 2.8rem;
  height: 0.4rem;
  position: relative;
  margin-left: 10px;
}

.logo a img{
  width: 1rem;
}



.search #search_form>input {
  width: 2rem;
  height: 0.4rem;
  border-radius: 0.1rem;
  text-indent: 0.1rem;
  outline: none;
  position: absolute;
  border:none;
  border-bottom: 0.01rem solid white;
  background-color: rgb(255, 255,255,0.05);
  color: white;
}
.search .search-btn{
  width: 0.5rem;
  position: relative;
  padding-right: 20px;
}
.search .search-btn img {
  width: 0.25rem;
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}
/* 历史查询 */
.history{
  /* margin-top: 0.9rem; */
  overflow: hidden;
  background-color: rgba(255,255,255,0.05);
  transition-duration: 0.5s;
}
.history .la{
  display: flex;
  justify-content: space-between;
  height: .3rem;
  top: .45rem;
  width: 90%;
  font-size: .16rem;
  border-radius: .01rem solid #fff;
  margin: .1rem .2rem;
  line-height: .3rem;
}
.history .la span{
  color: #fff;
}
.history .la img{
  width: .2rem;
  height: .2rem;
  padding: .03rem;
  border: .01rem solid #cccc;
  border-radius: .05rem;
}

/* 历史记录 */
.historied{
  overflow: hidden;
}
.history .history-item{
  display: flex;
  height: 40px;
  border-bottom: .01rem dashed #ccc;
  align-items: center;
  justify-content: space-evenly;
}
.history .history-item .history-time{
  font-size:.14rem;
}
.history .history-item .history-city{
  font-size: .18rem;
}

/* 清除历史记录 */
.clearBtn{
  height: .3rem;
  text-align: center;
  text-decoration: underline;
  font-size: .2rem;
  margin-top: .1rem;
  line-height: .3rem;
}

/* 今日天气 */
.now{
  padding-top: 0.2rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(45deg, #353F4E, #1C1D1F);
}
.now .now-city-time {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.now .city{
  font-size: .4rem;
  /* text-align: center; */
}
.now .situation {
  padding-top: 0.2rem;
  display: flex;
  justify-content: space-evenly;
  font-size: .15rem;
  align-items: center;
}
.now .situation img {
  width: 1rem;
  height: 1rem;
  vertical-align: bottom;
}
.now .temp{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.now .temp>h3 {
  font-size: 0.2rem;
  margin-top: 0.1rem;
}
/* 未来天气状态 */
.forecast{
  background-color: rgba(0,0,0,0.2);
  margin: 0 0.2rem;
  border-radius: 0.1rem;
}
.forecast-item{
  height: .3rem;
  display: flex;
  justify-content: space-between;
  margin: .1rem .2rem 0;
  padding-top: 0.1rem;
}
.forecast-item:last-of-type {
  padding-bottom: 0.1rem;
}

.forecast-item .forecast-situation>img {
  width: 0.2rem;
  height: 0.2rem;
  vertical-align: middle;
}

.forecast-item .forecast-situation {
  font-size: 0.16rem;
}

.forecast-temp {
  font-size: 0.18rem;
}
.lifestyle{
  /* display: none; */
  margin: 0 0.2rem;
  background-color: rgba(0,0,0,0.2);
  border-radius: 0.1rem;
  padding:0 0.2rem 0.2rem 0.2rem;
}
.lifestyle > h2{
  text-align: center;
  margin-top: 0.2rem;
  font-size: .2rem;
  padding-top: .15rem;
}
.lifestyle .lifestyle-box{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.lifestyle .lifestyle-box .lifestyle-item {
  display: flex;
  flex-direction: column;
  width: 0.7rem;
  height: 0.4rem;
  font-size: 0.14rem;
  text-align: center;
  padding-top: 0.1rem;
  padding-bottom: 0.05rem;

}
.lifestyle .lifestyle-box .lifestyle-item>i {
  font-size: 0.2rem;
}
.lifestyle .lifestyle-box .lifestyle-item>span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* 生活指数弹窗 */
.lifestyle-tc {
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ccc;
  font-family: 幼圆;
  line-height: 0.4rem;
  transition-duration: 0.5s;

}

.lifestyle-tc .fanghui {
  width: 0.3rem;
  height: 0.3rem;
  position: absolute;
  left: 0.1rem;
  top: 0.1rem;
}

.lifestyle-tc .fanghui>img {
  width: 100%;
}

.lifestyle-tc>h2 {
  font-size: 0.3rem;
  width: 2.2rem;
  margin: 0.3rem auto 0;
  text-align: center;
}

.lifestyle-tc>span {
  width: 100%;
  font-size: 0.2rem;
  margin-top: 1.5rem;
  display: block;
  font-weight: 700;
  text-indent: 0.16rem;
}
.lifestyle-tc>p {
  text-indent: 0.32rem;
  font-size: 0.2rem;
}
